<?php
extract ($data);
//if (isset($category['ReclamationCategory']['id']) && $ReclamationCategory['id'] == $category['ReclamationCategory']['id']) { 
////     $tree->addItemAttribute('class', 'active'); // highlight this li 
//	$active = 'active';
//}else{
//	$active = 'off';
//}

//echo $html->link($TerminalCategory['name'], array('action' => 'select', $TerminalCategory['id']),array('class'=>'off'));
//$tree->addItemAttribute('id', 'selected-li-'.$TerminalCategory['id']); // highlight this li 
?>
<span onmouseover="$('#menu-category-<?php echo $TerminalCategory['id']?>').css('display','block');" onmouseout="$('#menu-category-<?php echo $TerminalCategory['id']?>').css('display','none');" >
	<div class="inline right hidden"  id="menu-category-<?php echo $TerminalCategory['id']?>">
		<div class="admin-menu">
			<?php echo $html->link( $html->image(HOST.'/add.png', array('alt'=>__d("views_elements","dodaj",true),'title'=>__d("views_elements","dodaj",true))),array('action'=>'categories_add',$TerminalCategory['id']), array('class'=>'right','escape'=>false), null, false);?>
			<?php echo $html->link( $html->image(HOST.'/edit.png', array('alt'=>__d("views_elements","edytuj",true),'title'=>__d("views_elements","edytuj",true))),array('action'=>'categories_edit',$TerminalCategory['id']), array('class'=>'right','escape'=>false), null, false);?>
			<?php echo $html->link( $html->image(HOST.'/del.png', array('alt'=>__d("views_elements","usun",true),'title'=>__d("views_elements","usun",true))),array('action'=>'categories_del',$TerminalCategory['id']), array('class'=>'right','escape'=>false),sprintf(__d("views_elements","Czy napewno usunac wybrana kategorie: %s?",true), $TerminalCategory['name']),false);?>
			<?php echo $html->link( $html->image(HOST.'/up.png', array('alt'=>__d("views_elements","do gory",true),'title'=>__d("views_elements","do gory",true))),array('action'=>'categories_moveup',$TerminalCategory['id'],1), array('class'=>'right','escape'=>false), null, false);?>
			<?php echo $html->link( $html->image(HOST.'/down.png', array('alt'=>__d("views_elements","na dol",true),'title'=>__d("views_elements","na dol",true))),array('action'=>'categories_movedown',$TerminalCategory['id'],1), array('class'=>'right','escape'=>false), null, false);?>
		</div>
	</div>
	<?php echo $TerminalCategory['name']?>

</span>